﻿<navigation:Page x:Class="Corina.Lantern.Hub.Views.Datas.OverproofView"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
                 xmlns:localViewmodel="clr-namespace:Corina.Lantern.Hub.Viewmodels"
                 d:DesignHeight="480"
                 d:DesignWidth="640"
                 mc:Ignorable="d">
    <navigation:Page.DataContext>
        <localViewmodel:OverproofView/>
    </navigation:Page.DataContext>
    
    
    <Grid x:Name="LayoutRoot">

        <ListBox ItemsSource="{Binding ItemsCollection}">
            <ListBox.ItemContainerStyle>
                <Style TargetType="ListBoxItem">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ListBoxItem">
                                <toolkit:Expander Header="{Binding Time}" Margin="12" IsExpanded="{Binding IsSelected, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                                    <StackPanel>
                                        <TextBlock Text="{Binding Content}" />
                                        <StackPanel Orientation="Horizontal">
                                            <HyperlinkButton Content="删除"/>
                                        </StackPanel>
                                    </StackPanel>
                                </toolkit:Expander>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </ListBox.ItemContainerStyle>
        </ListBox>

    </Grid>
</navigation:Page>
